/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package server;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;


/**
 *
 * @author apple
 */
public interface Trader extends Remote{
	public void addItem(String name, float price, int num, String trader) throws RemoteException;
	public boolean deleteItem(String name) throws RemoteException;
	public boolean editItem(String name, String new_name, float new_price) throws RemoteException;	
	public List<Item> searchItem(String name) throws RemoteException;
	public float buyItem(Item item) throws RemoteException;
	public boolean sellItem(Item item) throws RemoteException;
	public void add2wishList(String name, float price) throws RemoteException;

}
